#!/bin/bash

docker kill tomcat_cpmp
docker rm tomcat_cpmp

echo start

depwebapp=$(pwd)/cpmp/target/cpmp
cp jdbc.properties ${depwebapp}/WEB-INF/classes/jdbc.properties

docker run -d -p 8080:8080 -v $(pwd)/webapps:/usr/local/tomcat/webapps -v ${depwebapp}:/usr/local/tomcat/webapps/cpmp --name tomcat_cpmp tomcat_base

echo ok 